package avicit.im.lantop.basic.libstructuredefine.service.api;

import avicit.platform6.core.rest.msg.ResponseMsg;
import avicit.platform6.core.restclient.RestClient;
import avicit.platform6.core.restclient.RestClientUtils;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
public class LantopArchiveClassService2Api {


    /**
     * 服务编码
     */
    private static final String SERVICE_CODE = "filebasicmanager";

    private static final String BASE_PATH = "/api/avicit/im/lantop/basic/libstructuredefine/action/rest/LantopArchiveRest";

    @Autowired
    private RestClient restClient;


    public void syncCbbTabColumns(String nodeId, List<String> orgIds) {
        String url = BASE_PATH + "/syncCbbTabColumns";
        Map<String,Object> map = new HashMap<>();
        map.put("nodeId",nodeId);
        map.put("orgIds",orgIds);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }
}
